package com.maltys.sign_aspect.annotation;


import com.maltys.sign_aspect.ErrorCode;
import com.maltys.sign_aspect.enums.SignTypeEnum;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author luonankun
 * @date 2022/10/21
 **/
@Target({ElementType.METHOD,ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface SignCheck {
    SignTypeEnum signType();
    ErrorCode errorResponse() default ErrorCode.APP_SIGNATURE_ERROR;
}
